//
//  fujinActTableViewCell.m
//  YeDian
//
//  Created by 罗西 on 3/30/16.
//  Copyright © 2016 罗西. All rights reserved.
//

#import "fujinActTableViewCell.h"
#import "Tools.h"

@implementation fujinActTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _imgView = [[UIButton alloc]initWithFrame:CGRectMake(10, 0, SCREEN_WIDTH-20, 150)];
        [self.contentView addSubview:_imgView];
        _imgView.contentMode = UIViewContentModeScaleAspectFill;
        _imgView.backgroundColor = [UIColor lightGrayColor];
        
        _disLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 150-30, SCREEN_WIDTH-20, 30)];
        _disLabel.backgroundColor = [UIColor colorWithWhite:0.0f alpha:0.5f];
        _disLabel.font = [UIFont systemFontOfSize:11];
        _disLabel.textColor = [UIColor redColor];
        _disLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_disLabel];
        
    }
    
    return self;
}

@end
